package weather.dictionary;

import weather.language.*;
import weather.util.dictionary.*;

public class SiteToQueryMappingDictionary extends
		AbstractMappingDictionary<Site, String>
{
	public static SiteToQueryMappingDictionary instance()
	{
		if (instance == null)
			instance = new SiteToQueryMappingDictionary();
		return instance;
	}
	
	@Override
	protected Site newKey(String s)
	{
		return new Site(s, SiteNamesDictionary.instance().getEntriesEquivalentToEntry(s));
	}
	
	@Override
	protected String newValue(String s)
	{
		return new String(s);
	}
	
	private SiteToQueryMappingDictionary() {}
	
	private static SiteToQueryMappingDictionary instance;
}
